package com.bite.deom1;

public class Test {

    public static void Fun(People people) {
        people.work();
    }

    public static void main(String[] args) {
        People people1 = new Student("张三",20);
        People people2 = new Worker("工人",30);

        Fun(people1);
        Fun(people2);
    }
}
